package tpf.designer.pattern.course10.homework.exercise2;

public class OptimisticLock {
    public static void main(String[] args) {
        SelfQueue selfQueue = new SelfQueue();

        Thread p = new Thread(new SelfProducer(selfQueue));
        Thread c = new Thread(new SelfConsumer(selfQueue));

        p.start();
        c.start();
    }
}
